package com.zwj.api.client;

import com.zwj.api.config.DefaultFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * @author 张文接
 * @version 1.0
 * @createTime 2024/7/16 14:44
 */
@FeignClient(value = "order-service", configuration = DefaultFeignConfig.class)
public interface OrderClient {
    /**
     * 标记订单已支付
     * @param orderId 订单 ID
     */
    @PutMapping("/{orderId}")
    void markOrderPaySuccess(@PathVariable("orderId") Long orderId);
}
